Printing error message for email validation under the form box in pure javascript